package com.ifnk.portaljava.dapWeb.service;

import com.ifnk.portaljava.dapWeb.pojo.Location;
import com.ifnk.portaljava.dapWeb.pojo.User;

import java.util.List;


public interface UserService {

	//public User findUserById(int id, boolean withRole);
	public User findUserById(int id);
	//根据用户的location查找用户列表
	public List<User> findUserList(Location location);

	public String addUser(User user);

	public String updateUser(User user);

	public void deleteUser(int id);
	//验证用户名是否重复
	public boolean checkLoginName(String loginName);
    //登陆
	public User login(String loginName, String password);
	
	//查询该用户的菜单项
	public List<String> findMenuList();
	
	public User setSession(int id);
	
	public int compareIp(String ip1,String ip2);
   
}
